package main;

import gamestates.*;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

public class Nubulus extends StateBasedGame
{
	public static final int PLAYSTATE = 1;
	
	public Nubulus() throws SlickException
	{
		super("Captain Nubulus");
		this.addState(PlayState.getInstance());
		this.enterState(PLAYSTATE);
		
	}

	@Override
	public void initStatesList(GameContainer gc) throws SlickException {
		this.getState(PLAYSTATE).init(gc, this);
	}
	
	public static void main(String[] args) throws SlickException
	{
		System.out.println(Math.cos(Math.PI));
		AppGameContainer app = new AppGameContainer(new Nubulus());
		app.setDisplayMode(1280, 720, false);
		app.setTargetFrameRate(60);
		app.setAlwaysRender(true);
		app.start();
	}
}
